package com.cheng.example.atguigu.design_pattern.strategy;

/*
 * @author 程帅
 * @createTime: 2020/10/19 13:01
 * @Created: with IntelliJ IDEA.
 */
public abstract class Duck {

    public abstract void display();//显示鸭子信息

    public void quack() {
        System.out.println("鸭子嘎嘎叫~~");
    }

    public void swim() {
        System.out.println("鸭子会游泳~~");
    }

    public void fly() {
        System.out.println("鸭子会飞翔~~");
    }

}
